import 'package:jyofservice/bean/user_fee_info_entity.dart';
import 'package:jyofservice/generated/json/base/json_filed.dart';

userFeeInfoEntityFromJson(UserFeeInfoEntity data, Map<String, dynamic> json) {
	if (json['Code'] != null) {
		data.code = json['Code'].toString();
	}
	if (json['Msg'] != null) {
		data.msg = json['Msg'].toString();
	}
	if (json['Data'] != null) {
		data.data = UserFeeInfoData().fromJson(json['Data']);
	}
	return data;
}

Map<String, dynamic> userFeeInfoEntityToJson(UserFeeInfoEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['Code'] = entity.code;
	data['Msg'] = entity.msg;
	data['Data'] = entity.data?.toJson();
	return data;
}

userFeeInfoDataFromJson(UserFeeInfoData data, Map<String, dynamic> json) {
	if (json['count'] != null) {
		data.count = json['count'].toString();
	}
	if (json['data'] != null) {
		data.data = (json['data'] as List).map((v) => UserFeeInfoDataData().fromJson(v)).toList();
	}
	return data;
}

Map<String, dynamic> userFeeInfoDataToJson(UserFeeInfoData entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['count'] = entity.count;
	data['data'] =  entity.data?.map((v) => v!.toJson())?.toList();
	return data;
}

userFeeInfoDataDataFromJson(UserFeeInfoDataData data, Map<String, dynamic> json) {
	if (json['Zgs_id'] != null) {
		data.zgsId = json['Zgs_id'].toString();
	}
	if (json['Zgs_name'] != null) {
		data.zgsName = json['Zgs_name'].toString();
	}
	if (json['Fgs_id'] != null) {
		data.fgsId = json['Fgs_id'].toString();
	}
	if (json['Fgs_name'] != null) {
		data.fgsName = json['Fgs_name'].toString();
	}
	if (json['Hrz_id'] != null) {
		data.hrzId = json['Hrz_id'].toString();
	}
	if (json['Hrz_name'] != null) {
		data.hrzName = json['Hrz_name'].toString();
	}
	if (json['Xq_name'] != null) {
		data.xqName = json['Xq_name'].toString();
	}
	if (json['Xq_id'] != null) {
		data.xqId = json['Xq_id'].toString();
	}
	if (json['Lh_id'] != null) {
		data.lhId = json['Lh_id'].toString();
	}
	if (json['Lh_name'] != null) {
		data.lhName = json['Lh_name'].toString();
	}
	if (json['Dy_id'] != null) {
		data.dyId = json['Dy_id'].toString();
	}
	if (json['Dy_name'] != null) {
		data.dyName = json['Dy_name'].toString();
	}
	if (json['Mph'] != null) {
		data.mph = json['Mph'].toString();
	}
	if (json['House_name'] != null) {
		data.houseName = json['House_name'].toString();
	}
	if (json['House_id'] != null) {
		data.houseId = json['House_id'].toString();
	}
	if (json['Sfbm'] != null) {
		data.sfbm = json['Sfbm'].toString();
	}
	if (json['azfs_name'] != null) {
		data.azfsName = json['azfs_name'].toString();
	}
	if (json['bjh_name'] != null) {
		data.bjhName = json['bjh_name'].toString();
	}
	if (json['Gnzt_name'] != null) {
		data.gnztName = json['Gnzt_name'].toString();
	}
	if (json['gryq_name'] != null) {
		data.gryqName = json['gryq_name'].toString();
	}
	if (json['qnlx_name'] != null) {
		data.qnlxName = json['qnlx_name'].toString();
	}
	if (json['sflx_name'] != null) {
		data.sflxName = json['sflx_name'].toString();
	}
	if (json['yhlb_name'] != null) {
		data.yhlbName = json['yhlb_name'].toString();
	}
	if (json['ContactAddress'] != null) {
		data.contactAddress = json['ContactAddress'].toString();
	}
	if (json['Real_Gn_area'] != null) {
		data.realGnArea = json['Real_Gn_area'] is String
				? double.tryParse(json['Real_Gn_area'])
				: json['Real_Gn_area'].toDouble();
	}
	if (json['Real_Jz_area'] != null) {
		data.realJzArea = json['Real_Jz_area'] is String
				? double.tryParse(json['Real_Jz_area'])
				: json['Real_Jz_area'].toDouble();
	}
	if (json['All_Gn_area'] != null) {
		data.allGnArea = json['All_Gn_area'] is String
				? double.tryParse(json['All_Gn_area'])
				: json['All_Gn_area'].toDouble();
	}
	if (json['All_Jz_area'] != null) {
		data.allJzArea = json['All_Jz_area'] is String
				? double.tryParse(json['All_Jz_area'])
				: json['All_Jz_area'].toDouble();
	}
	if (json['Link_man'] != null) {
		data.linkMan = json['Link_man'].toString();
	}
	if (json['Phone'] != null) {
		data.phone = json['Phone'].toString();
	}
	if (json['All_name'] != null) {
		data.allName = json['All_name'].toString();
	}
	if (json['Remarks'] != null) {
		data.remarks = json['Remarks'].toString();
	}
	return data;
}

Map<String, dynamic> userFeeInfoDataDataToJson(UserFeeInfoDataData entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['Zgs_id'] = entity.zgsId;
	data['Zgs_name'] = entity.zgsName;
	data['Fgs_id'] = entity.fgsId;
	data['Fgs_name'] = entity.fgsName;
	data['Hrz_id'] = entity.hrzId;
	data['Hrz_name'] = entity.hrzName;
	data['Xq_name'] = entity.xqName;
	data['Xq_id'] = entity.xqId;
	data['Lh_id'] = entity.lhId;
	data['Lh_name'] = entity.lhName;
	data['Dy_id'] = entity.dyId;
	data['Dy_name'] = entity.dyName;
	data['Mph'] = entity.mph;
	data['House_name'] = entity.houseName;
	data['House_id'] = entity.houseId;
	data['Sfbm'] = entity.sfbm;
	data['azfs_name'] = entity.azfsName;
	data['bjh_name'] = entity.bjhName;
	data['Gnzt_name'] = entity.gnztName;
	data['gryq_name'] = entity.gryqName;
	data['qnlx_name'] = entity.qnlxName;
	data['sflx_name'] = entity.sflxName;
	data['yhlb_name'] = entity.yhlbName;
	data['ContactAddress'] = entity.contactAddress;
	data['Real_Gn_area'] = entity.realGnArea;
	data['Real_Jz_area'] = entity.realJzArea;
	data['All_Gn_area'] = entity.allGnArea;
	data['All_Jz_area'] = entity.allJzArea;
	data['Link_man'] = entity.linkMan;
	data['Phone'] = entity.phone;
	data['All_name'] = entity.allName;
	data['Remarks'] = entity.remarks;
	return data;
}